package com.taotao.common.pojo;

public class CommonResult {

	private Integer status;
	private String msg;
	private String data;
	
	public CommonResult() {
		super();
	}
	public CommonResult(Integer status, String msg, String data) {
		super();
		this.status = status;
		this.msg = msg;
		this.data = data;
	}
	public static CommonResult ok(){
		return new CommonResult(200, null, null);
	}
	public static CommonResult ok(String data){
		return new CommonResult(200, null, data);
	}
	public static CommonResult build(Integer status, String msg){
		return new CommonResult(status, msg, null);
	}
	public static CommonResult build(Integer status, String msg, String data){
		return new CommonResult(status, msg, data);
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public String getData() {
		return data;
	}
	public void setData(String data) {
		this.data = data;
	}
}
